package com.woniuxy.goodsservice.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/9 0009-下午 4:40
 */
@RestController
public class GoodsController {
    @RequestMapping("/detail")
    public Map detail(){
        Map map = new HashMap();
        map.put("code",200);
        map.put("detail","笔记本");
        return map;
    }

    @RequestMapping("/pay")
    public Map pay(){
        System.out.println("okokok");
        Map map = new HashMap();
        map.put("code",200);
        map.put("detail","支付");
        return map;
    }
}
